    /*JavaScript整体由余柏霖布置 */
    var find = document.getElementById("Q1")
    var choosename = document.getElementsByName("yinqing")
    var info = document.getElementById("info")
    var imglogo = document.getElementById("imglogo")
    /*更改首页搜索引擎图——by陈锦锴*/
    choosename[0].onchange=function(){
        imglogo.src="./img/baidu.png"
    }
    choosename[1].onchange=function(){
        imglogo.src="./img/bing.svg"
    }
    choosename[2].onchange=function(){
        imglogo.src="./img/juejin.svg"
    }
    choosename[3].onchange=function(){
        imglogo.src="./img/github.svg"
    }
    
    /*开发人员——by薛明安*/
    function developer(){
        var people = document.getElementById("people")
        setTimeout(function(){
            people.classList.remove("hide")
            people.classList.add("show")

        },100)
        
        setTimeout(function(){
            people.classList.remove("show")  
            people.classList.add("hide")
        },5000)
    }
    
    /*判断搜索引擎——by余柏霖*/
    find.onclick = function(){
        var searchtext = document.getElementById("q").value
        if(searchtext.length==0){
            setTimeout(function(){
                info.classList.remove("hide")
                info.classList.add("show")
            },100)
            
            setTimeout(function(){
                info.classList.remove("show")  
                info.classList.add("hide")
            },2000)
        }else if(choosename[0].checked){
            open('https://www.baidu.com/s?tn=68018901_2_oem_dg&ie=utf-8&word='+ searchtext, '_blank') 
        }else if(choosename[1].checked){
            
            open('https://cn.bing.com/search?q='+ searchtext,'_blank')
        }else if(choosename[2].checked){
            
            open('https://juejin.cn/search?query='+ searchtext,'_blank')
        }else{
            open('https://github.com/search?q='+ searchtext,'_blank')
        }
    }